<!--
 * @Description: 测试子组件
 * @Author: ZhangHan
 * @Date: 2025-04-07 17:45:01
 * @LastEditTime: 2025-04-07 21:07:36
 * @LastEditors: Zhanghan
-->
<template>
  <div><ElButton @click="setValue">点击数字增加</ElButton></div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { ElButton } from "element-plus";

const props = defineProps<{ count: number }>();
const emits = defineEmits(["update:count"]);

const setValue = () => {
  emits("update:count", props?.count + 1);
};
</script>
